package cn.timeapi.Applet.Mall.CatSquare.dao;

import cn.timeapi.Applet.Mall.CatSquare.entity.Shipping;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShippingMapper {
    int deleteByPrimaryKey(Integer id);

    int deleteByIdAndOpenId(@Param("id") Integer id,@Param("OpenId") String OpenId);

    int insert(Shipping record);

    Shipping selectByPrimaryKey(Integer id);

    List<Shipping> selectAll();

    Shipping selectByShippingAndOpenId(@Param("id") Integer id, @Param("OpenId") String OpenId);

    List<Shipping> selectByOpenId(String OpenId);

    int updateByPrimaryKey(Shipping record);

    int updateByPrimaryKeySelective(Shipping record);

    int updateByIdAndShipping(Shipping record);

}